home *** CD-ROM | disk | FTP | other *** search
- Path: news1.halcyon.com!chinook!danubius
- From: danubius@chinook.halcyon.com ()
- Newsgroups: comp.windows.x.motif,comp.lang.c++
- Subject: Re: MOTIF Callbacks, C++ Member Functions - SOLVED
- Date: 7 Feb 1996 06:03:36 GMT
- Organization: Northwest Nexus, Inc. - Professional Internet Services
- Distribution: inet
- Message-ID: <4f9fbo$7ju@news1.halcyon.com>
- References: <4f6oau$c4m@knot.queensu.ca>
- NNTP-Posting-Host: chinook.halcyon.com
-
- Wintermute <3mal5@qlink.queensu.ca> wrote:
- >
- >The solution was to declare a static member function which is used as a
- >callback. Since it is static, there is no 'this' pointer, and it works
- >fine. To access the particular class instance, pass the 'this' pointer
- >as client data when installing the callback, and it will be available
- >when the static member function is called back.
-
- Which is exactly the method Doug Young uses in his book on Motif with
- C++.
-
- Joe
-